<include file="public@storage"/>
<style>
    form {
        margin-top: 100px;
        padding-left: 50px;
        padding-right: 50px;
    }
</style>
</head>
<body>
<form class="form-horizontal table" id="form" onsubmit = "return checkRole()" action="{:url('storage/Role/addRole')}"  method="post"  >
    <div class="panel panel-primary">
        <div class="panel-heading">
            <h3 class="panel-title">添加角色</h3>
        </div>
        <div class="panel-body" >
            <div class="form-group" style="text-align:center">
                <div class="col-md-2 control-label">
                    <label for="name">角色名：</label>
                </div>
                <div class="col-md-2">
                    <input type="text" name="name" id="name" class="form-control" placeholder="必须填"
                           required="required" autocomplete="off">
                    <input type="hidden" name="status"  value="1" >
                    <span id="name_error" style="color: red"></span>
                </div>

                <!--<div class="col-md-2 control-label">-->
                    <!--<label for="parent_id">上级角色：</label>-->
                <!--</div>-->
                <!--<div class="col-md-2">-->
                    <!--<select id="parent_id" name="parent_id" class="selectpicker  form-control" title="请选择角色" data-live-search="true">-->
                        <!--<volist name="role" id="vo">-->
                            <!--<option value="{$vo.id}">{$vo.name}</option>-->
                        <!--</volist>-->
                    <!--</select>-->
                    <!--<span id="parent_id_error" style="color: red"></span>-->
                <!--</div>-->

                <div class="col-md-2 control-label">
                    <label for="remark">角色描述：</label>
                </div>
                <div class="col-md-2">
                    <textarea type="text" class="form-control" id="remark" name="remark" style="height:34px "></textarea>
                </div>
            </div>
        </div>
        <div class="form-group text-center">
            <button type="submit" class="mui-btn mui-btn--raised mui-btn--primary" id="submit">添加</button>
            &nbsp;&nbsp;
            <button type="button" class="mui-btn mui-btn--raised mui-btn--primary" onclick="history.go(-1)">取消</button>
        </div>
    </div>
</form>
</body>
<script src="__STATIC__/storage/js/role/add.js"></script>
</html>